import request from '@/utils/request'

export function equipmentList(query) {
  return request({
    url: '/deviceInfo/list',
    method: 'get',
    params: query
  })
}

export function equipmentAdd(data) {
  return request({
    url: '/deviceInfo/create',
    method: 'post',
    data
  })
}

export function equipmentDel(id) {
  return request({
    url: `/deviceInfo/delete/${id}`,
    method: 'delete'
  })
}

export function equipmentDetail(id) {
  return request({
    url: `/deviceInfo/${id}`,
    method: 'get'
  })
}

export function equipmentUpdate(data) {
  return request({
    url: '/deviceInfo/update',
    method: 'post',
    data
  })
}

export function departmentList(query) {
  return request({
    url: '/department/list',
    method: 'get',
    params: query
  })
}
